package com.test.gmall.cosumer.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import beans.User;
import service.OrderService;
import service.UserService;

import java.util.Arrays;
import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

	@Reference
	private UserService userService;

	@Override
	public User initOrder(String userId) {
		User user = userService.getUser("1");
		return user;
	}

	public List<User> hello(String userId) {
		// TODO Auto-generated method stub

		return Arrays.asList(new User("10", "张三", "测试地址"));
	}

}
